package com.danciyixue.boot.dcyx.model.vo;

import com.danciyixue.boot.dcyx.model.enums.EffectiveDurationOption;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户信息视图对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:58
 */
@Getter
@Setter
@Schema( description = "用户信息视图对象")
public class DcyxUsersVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long id;
    @Schema(description = "所属组织ID")
    private Long organizationId;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "姓名")
    private String fullname;
    @Schema(description = "性别,0-未知,1-男,2-女")
    private Integer gender;
    @Schema(description = "手机号")
    private String mobile;
    @Schema(description = "学校名称")
    private String schoolName;
    @Schema(description = "负责老师ID")
    private Long assignedTeacherId;
    @Schema(description = "年级")
    private String grade;
    @Schema(description = "微信ID")
    private String wechatId;
    @Schema(description = "QQ号")
    private String qq;
    @Schema(description = "最后成绩")
    private Integer lastScore;
    @Schema(description = "账号过期时间")
    private LocalDateTime expireTime;
    @Schema(description = "账号有效时长（月）")
    private EffectiveDurationOption effectiveDuration;
    @Schema(description = "最近登录时间")
    private LocalDateTime loginTime;
    @Schema(description = "电子邮箱")
    private String email;
    @Schema(description = "关联年级列表")
    private String grades;
    @Schema(description = "学生类型,1=学生,2=其他")
    private Integer studentType;
    @Schema(description = "首次登录时间")
    private LocalDateTime firstLoginTime;
    @Schema(description = "教师姓名")
    private String teacherName;
    @Schema(description = "教师手机号")
    private String teacherMobile;
    @Schema(description = "班级名称")
    private String className;
    @Schema(description = "状态,1=正常,0=禁用")
    private Integer status;
}
